package com.srb.common;

import lombok.extern.slf4j.Slf4j;

/**
 * @Author 宋伟宁
 * @Date 2024/2/29
 * @Version 1.0
 **/
@Slf4j
public abstract class Assert {

      public static void nullMessage(Object object,ResponseEnum responseEnum) {
          if (object == null) {
              throw new BusinessException(responseEnum.getCode(), responseEnum.getMessage());
          }
      }
}
